package com.example.hilt_mvvm_http.two


import com.example.hilt_mvvm_http.two.model.AdInfoModel
import com.example.hilt_mvvm_http.two.model.CommonListMallApiModel
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

interface MallApi {
    @POST("/gateway.do")
    @MallApiService("cmallAdInfo")
    suspend fun getAdInfo(@Body body:RequestBody): CommonListMallApiModel<AdInfoModel>
}
/**
 * 调用OpenApi的service类型，@OpenApiHeaderInterceptor拦截器会自动添加此参数，不加需要在请求参数中自己添加
 */
annotation class MallApiService(val service:String)